import { http } from '@/utils/http'
//获取病人列表
export const getPetientbydoc = (data: any) => {
  return http<any>({
    method: 'GET',
    url: `/visit/getSignPatient?keyword=${data.text}&doctorId=${data.doctorId}&page=${data.page}&pageSize=${data.pageSize}`,
  })
}
//获取体检列表
export const getPetientCheck = (data: any) => {
  return http<any>({
    method: 'GET',
    url: `/visit/getCheckItemList?patientId=${data}`
  })
}
export const addPetientCheck = (data: any) => {
  return http<any>({
    method: 'POST',
    url: `/patient/addCheckItem`,
    data
  })
}
export const deleteCheck = (id: any) => {
  console.log(id);

  return http<any>({
    method: 'DELETE',
    url: `/patient/deleteCheck?checkItem_id=${id}`
  })
}